using UnityEngine;
using System.Collections;

public class MenuEnding : MonoBehaviour {

	public bool Dead = false;

	// Use this for initialization
	void Start () {
		for (int i =0; i < this.transform.GetChildCount();i++)
		{
			this.transform.GetChild(i).gameObject.active = false;
		}
	}
	
	// Update is called once per frame
	void Update () 
	{
		if (Dead)
		{
			for (int i = 0; i < this.transform.GetChildCount(); i++)
			{
				this.transform.GetChild(i).gameObject.active = true;
			}

		}
	
	}
}
